.class public Lcom/example/inshopbuy/InShopOrdersAdapter;
.super Landroid/widget/BaseAdapter;
.source "InShopOrdersAdapter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;
    }
.end annotation


# instance fields
.field private adapter:Lcom/example/inshopbuy/InShopOrdersAdapter;

.field private beans:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/example/inshopbuy/InShopOrdersBean;",
            ">;"
        }
    .end annotation
.end field

.field private context:Landroid/content/Context;

.field private h:Landroid/os/Handler;

.field private inflater:Landroid/view/LayoutInflater;

.field private loader:Lcom/nostra13/universalimageloader/core/ImageLoader;

.field private m:Lmyapp/MyApp;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;Lmyapp/MyApp;Landroid/os/Handler;)V
    .locals 1
    .param p1, "context"    # Landroid/content/Context;
    .param p3, "m"    # Lmyapp/MyApp;
    .param p4, "h"    # Landroid/os/Handler;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List",
            "<",
            "Lcom/example/inshopbuy/InShopOrdersBean;",
            ">;",
            "Lmyapp/MyApp;",
            "Landroid/os/Handler;",
            ")V"
        }
    .end annotation

    .prologue
    .line 50
    .local p2, "beans":Ljava/util/List;, "Ljava/util/List<Lcom/example/inshopbuy/InShopOrdersBean;>;"
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 51
    iput-object p1, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->context:Landroid/content/Context;

    .line 52
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->inflater:Landroid/view/LayoutInflater;

    .line 53
    iput-object p2, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->beans:Ljava/util/List;

    .line 54
    invoke-virtual {p3}, Lmyapp/MyApp;->getInstance()Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v0

    iput-object v0, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->loader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    .line 55
    iput-object p3, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->m:Lmyapp/MyApp;

    .line 56
    iput-object p4, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->h:Landroid/os/Handler;

    .line 57
    iput-object p0, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->adapter:Lcom/example/inshopbuy/InShopOrdersAdapter;

    .line 60
    return-void
.end method

.method static synthetic access$0(Lcom/example/inshopbuy/InShopOrdersAdapter;)Lcom/example/inshopbuy/InShopOrdersAdapter;
    .locals 1

    .prologue
    .line 46
    iget-object v0, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->adapter:Lcom/example/inshopbuy/InShopOrdersAdapter;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/inshopbuy/InShopOrdersAdapter;)Ljava/util/List;
    .locals 1

    .prologue
    .line 44
    iget-object v0, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->beans:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/inshopbuy/InShopOrdersAdapter;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 40
    iget-object v0, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/inshopbuy/InShopOrdersAdapter;)Lmyapp/MyApp;
    .locals 1

    .prologue
    .line 38
    iget-object v0, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->m:Lmyapp/MyApp;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/inshopbuy/InShopOrdersAdapter;)Landroid/os/Handler;
    .locals 1

    .prologue
    .line 48
    iget-object v0, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->h:Landroid/os/Handler;

    return-object v0
.end method


# virtual methods
.method public deletOrder(Ljava/lang/String;)V
    .locals 2
    .param p1, "orderid"    # Ljava/lang/String;

    .prologue
    .line 149
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/example/inshopbuy/InShopOrdersAdapter$3;

    invoke-direct {v1, p0, p1}, Lcom/example/inshopbuy/InShopOrdersAdapter$3;-><init>(Lcom/example/inshopbuy/InShopOrdersAdapter;Ljava/lang/String;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 199
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 201
    return-void
.end method

.method public getCount()I
    .locals 1

    .prologue
    .line 65
    iget-object v0, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->beans:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .param p1, "arg0"    # I

    .prologue
    .line 71
    iget-object v0, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->beans:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .param p1, "arg0"    # I

    .prologue
    .line 77
    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 6
    .param p1, "arg0"    # I
    .param p2, "arg1"    # Landroid/view/View;
    .param p3, "arg2"    # Landroid/view/ViewGroup;

    .prologue
    .line 83
    if-nez p2, :cond_1

    .line 84
    new-instance v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;

    invoke-direct {v1}, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;-><init>()V

    .line 85
    .local v1, "holder":Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;
    iget-object v2, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->inflater:Landroid/view/LayoutInflater;

    const v3, 0x7f030071

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 86
    const v2, 0x7f0c0290

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;->addtime:Landroid/widget/TextView;

    .line 87
    const v2, 0x7f0c0099

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;->delete:Landroid/widget/TextView;

    .line 88
    const v2, 0x7f0c00af

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;->huiname:Landroid/widget/TextView;

    .line 89
    const v2, 0x7f0c028b

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;->myshopname:Landroid/widget/TextView;

    .line 90
    const v2, 0x7f0c028f

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;->ordercost:Landroid/widget/TextView;

    .line 91
    const v2, 0x7f0c009d

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    iput-object v2, v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;->shoplogo:Landroid/widget/ImageView;

    .line 93
    iget-object v2, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->m:Lmyapp/MyApp;

    invoke-virtual {v2}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v2

    const-string v3, "1"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 94
    iget-object v2, v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;->delete:Landroid/widget/TextView;

    const v3, 0x7f020020

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setBackgroundResource(I)V

    .line 97
    :cond_0
    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 102
    :goto_0
    iget-object v2, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->beans:Ljava/util/List;

    invoke-interface {v2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/example/inshopbuy/InShopOrdersBean;

    .line 103
    .local v0, "bean":Lcom/example/inshopbuy/InShopOrdersBean;
    iget-object v2, v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;->myshopname:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/example/inshopbuy/InShopOrdersBean;->getShopname()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 104
    iget-object v2, v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;->huiname:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/example/inshopbuy/InShopOrdersBean;->getHuiname()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 105
    iget-object v2, v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;->addtime:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/example/inshopbuy/InShopOrdersBean;->getAddtime()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 106
    iget-object v2, v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;->ordercost:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/example/inshopbuy/InShopOrdersBean;->getSjcost()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 108
    invoke-virtual {v0}, Lcom/example/inshopbuy/InShopOrdersBean;->getPaystatus()Ljava/lang/String;

    move-result-object v2

    const-string v3, "1"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 109
    iget-object v2, v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;->delete:Landroid/widget/TextView;

    const/16 v3, 0x8

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setVisibility(I)V

    .line 114
    :goto_1
    iget-object v2, v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;->delete:Landroid/widget/TextView;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 115
    iget-object v2, v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;->delete:Landroid/widget/TextView;

    new-instance v3, Lcom/example/inshopbuy/InShopOrdersAdapter$1;

    invoke-direct {v3, p0}, Lcom/example/inshopbuy/InShopOrdersAdapter$1;-><init>(Lcom/example/inshopbuy/InShopOrdersAdapter;)V

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 126
    iget-object v2, p0, Lcom/example/inshopbuy/InShopOrdersAdapter;->loader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    invoke-virtual {v0}, Lcom/example/inshopbuy/InShopOrdersBean;->getShoplogo()Ljava/lang/String;

    move-result-object v3

    iget-object v4, v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;->shoplogo:Landroid/widget/ImageView;

    invoke-static {}, Lmyapp/MyApp;->getDefaultOptions()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v5

    invoke-virtual {v2, v3, v4, v5}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)V

    .line 128
    invoke-virtual {p2, p1}, Landroid/view/View;->setId(I)V

    .line 129
    new-instance v2, Lcom/example/inshopbuy/InShopOrdersAdapter$2;

    invoke-direct {v2, p0}, Lcom/example/inshopbuy/InShopOrdersAdapter$2;-><init>(Lcom/example/inshopbuy/InShopOrdersAdapter;)V

    invoke-virtual {p2, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 141
    return-object p2

    .line 99
    .end local v0    # "bean":Lcom/example/inshopbuy/InShopOrdersBean;
    .end local v1    # "holder":Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;
    :cond_1
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;

    .restart local v1    # "holder":Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;
    goto :goto_0

    .line 111
    .restart local v0    # "bean":Lcom/example/inshopbuy/InShopOrdersBean;
    :cond_2
    iget-object v2, v1, Lcom/example/inshopbuy/InShopOrdersAdapter$MyHolder;->delete:Landroid/widget/TextView;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_1
.end method
